package com.fashop.enumeration;

/**
 * @author ustargba@gmail.com
 *
 */
public enum ValueHeaderApplicationEnum {

	/**
	 * json for JSON protocol.
	 */
	JSON("json"),
	/**
	 * Application header.
	 */
	APPLICATION("application");
	/**
	 * Value of header into request http.
	 */
	private String headerValue;
	/**
	 * Default constructor.
	 * @param valueIn String with the value of header.
	 */
	private ValueHeaderApplicationEnum(final String valueIn) {
		headerValue = valueIn;
	}
	/**
	 * Get the value of header requested.
	 * @param valueHeaderApplicationEnum header requested.
	 * @return String with the value of header.
	 */
	public static String getHeaderValue(final ValueHeaderApplicationEnum valueHeaderApplicationEnum) {
		String value = "";
		for (ValueHeaderApplicationEnum header : ValueHeaderApplicationEnum.values()) {
			if (header.equals(valueHeaderApplicationEnum)) {
				value = header.getValue();
			}
		}
		return value;
	}
	/**
	 * Get the value of header.
	 * @return String with the value of header.
	 */
	public String getValue() {
		return headerValue;
	}
}
